import { Module } from '@nestjs/common';
import { MockCatsService } from './mockCats.service';
import { MockCatsController } from './mockCats.controller';

const mockCatsObj = {
  data: [
    {
      id: 1,
      name: '汤122222222323322323',
      age: 100,
      color: 'white',
      breed: 'jack',
    },
    {
      id: 1,
      name: '汤1',
      age: 100,
      color: 'white',
      breed: 'jack',
    },
  ],
};

@Module({
  controllers: [MockCatsController],
  providers: [
    {
      provide: MockCatsService,
      useValue: mockCatsObj,
    },
  ],
})
export class CatsModule {}
